package uy.com.tsi2G7.superbet.bet.dao;

import java.util.List;

import javax.ejb.Local;

import uy.com.tsi2G7.superbet.bet.Bet;
import uy.com.tsi2G7.superbet.bet.CompositeBet;
import uy.com.tsi2G7.superbet.bet.SimpleBet;
import uy.com.tsi2G7.superbet.ui.BetHistoryDescriptor;

@Local
public interface BetStore {

	public void storeBet(Bet bet) ;

	public List<BetHistoryDescriptor> getlastUserSimpleBetsDescription(String userId);
	
	public List<BetHistoryDescriptor> getPendingUserBetsDescription(String userId);

	public List<SimpleBet> getOpenBetsByMarketId(long eventTypeId, long marketId);

	public void closeBet(long id);

	public CompositeBet getOpenCompositeBetBySon(long id);
	
	public Bet getUserBet(String userId,long marketId, long marketResultId);

}
